<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="../../../css/admin.css"/>
<script type="text/javascript" src="../../../js/jquery.js"></script>
<script type="text/javascript" src="../../../js/changebgcolor.js"></script>
<script type="text/javascript" src="../../../js/calendar.js"></script>
<script type="text/javascript" src="js/edit_supplier.js"></script>
<script type="text/javascript">
window.onload = function (){
	document.title = '供应商信息';
	
	$('#supplier_id').val('');

	var addstr = document.URL;
	var supplier_id = addstr.split('?')[1];
	if(supplier_id>0){
		selectSupplier(supplier_id);
	}
};
function on_reset(){
	var supplier_id = $('#supplier_id').val();
	selectSupplier(supplier_id);
};
</script>
</head>

<body>
<input type="hidden"  id="supplier_id" />
<form action="javascript:void(0)">
  <table class="list" border="0" cellspacing="1" width="230" style="position:absolute; left:50%; margin-top:5px; margin-left:-115px; text-align:center;" >
    <tr><td class="list" width="60" >类别</td><td class="list" width="" ><input type="radio" name="supplier_type" value="0" checked="checked" />供应商<input type="radio" name="supplier_type" value="1" />客户</td></tr> 
    <tr><td class="list" width="60" >名称</td><td class="list" width="" ><input style="width:158px; text-align:center;" type="text" id="supplier_name" /></td></tr>     
    <tr><td class="list" width="60" >联系人</td><td class="list" width="" ><input style="width:158px; text-align:center;" type="text" id="supplier_man" /></td></tr>    
    <tr><td class="list" width="60" >电话</td><td class="list" width="" ><input style="width:158px; text-align:center;" type="text" id="supplier_phone" /></td></tr>     
    <tr><td class="list" width="60" >传真</td><td class="list" width="" ><input style="width:158px; text-align:center;" type="text" id="supplier_fax" /></td></tr>     
    <tr><td class="list" width="60" >地址</td><td class="list" width="" ><input style="width:158px; text-align:center;" type="text" id="supplier_address" /></td></tr>   
    <tr><td class="list" width="60" >好评度</td><td class="list" width="" ><input type="radio" name="supplier_comment" value="0" />优<input type="radio" name="supplier_comment" value="1" checked="checked" />良<input type="radio" name="supplier_comment" value="2" />差</td></tr> 
    <tr><td class="list" colspan="2" ><input type="button" value="重置" onclick="on_reset()" />&nbsp;&nbsp;&nbsp;<input type="button" value="提交" onclick="saveOrUpdate()" class="submit" /></td></tr>  
  </table>
</form>
</body>
</html>
